package com.medical.domain;

import com.medical.domain.superdomain.SuperDomain;
import lombok.Data;

import java.util.Date;

@Data
public class Account extends SuperDomain {
    private Long id;
    private String uname;
    private String pwd;
    private String phoneNumber;
    private String utype;   //ROLE_1管理员、ROLE_2医生、ROLE_3患者
    private Date updatetime;
    private Date createtime;
    private String realname;//真实姓名

    public Account() {
    }

    public Account(Long id, String uname, String pwd, String phoneNumber, String utype, Date updatetime, Date createtime, String realname) {
        this.id = id;
        this.uname = uname;
        this.pwd = pwd;
        this.phoneNumber = phoneNumber;
        this.utype = utype;
        this.updatetime = updatetime;
        this.createtime = createtime;
        this.realname = realname;
    }

    public Account(Long id, String uname, String realname, String utype, String pwd) {
        this.id = id;
        this.uname = uname;
        this.pwd = pwd;
        this.utype = utype;
        this.realname = realname;
    }


    //    @Override
//    public String toString() {
//        return "Account{" +
//                "id=" + id +
//                ", uname='" + uname + '\'' +
//                ", pwd='" + pwd + '\'' +
//                ", phoneNumber='" + phoneNumber + '\'' +
//                ", utype='" + utype + '\'' +
//                ", updatetime=" + updatetime +
//                ", createtime=" + createtime +
//                ", realname='" + realname + '\'' +
//                '}';
//    }
    //省略get/set方法
}